package com.umgsai.thread.thread31;

public class Service {
	public void testMethod(Object lock) {
		try {
			synchronized (lock) {
				System.out.println(Thread.currentThread().getName() + " begin wait");
				lock.wait();
				System.out.println(Thread.currentThread().getName() + " end wait");
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
